package com.atguigu.webadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.model.pojo.ProvinceInfo;
import com.atguigu.webadmin.service.ProvinceInfoService;
import com.atguigu.webadmin.mapper.ProvinceInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 梅超凡
 * @Date 2024/11/12~20:32
 * @Description 针对表【province_info】的数据库操作Service实现
*/
@Service
public class ProvinceInfoServiceImpl extends ServiceImpl<ProvinceInfoMapper, ProvinceInfo>
    implements ProvinceInfoService{

    @Autowired
    private ProvinceInfoMapper provinceInfoMapper;
    @Override
    public String selectProvinceNameById(Long provinceId) {
        ProvinceInfo provinceInfo = provinceInfoMapper.selectById(provinceId);
        return provinceInfo.getName();
    }

}




